package ch.reevolt.mosaic;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class Receiver extends BroadcastReceiver {

	BroadcastListener listener;
	
	public static String ACTION_FRAGMENT = "FRAGMENT";
	
	@Override
	public void onReceive(Context context, Intent intent) {
		Log.d("----------------------------------------------------------->","recu");
		if(listener != null)
			listener.notify(intent);
	}

	public void setListener(BroadcastListener listener) {
		this.listener = listener;
	}

	public interface BroadcastListener {
		public void notify(Intent intent);
	}

}
